<%--
  Created by IntelliJ IDEA.
  User: 董春光
  Date: 2020-08-17
  Time: 15:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath()+"/";
%>
<html>
<head>
    <base href="<%=basePath%>"/>
    <title>查询体检卡</title>
</head>
<body>
<form action="Initialize/selectcard" method="post">
    <table>
        <tr>
            <td>
                卡号：
            </td>
            <td>
                <input type="text" name="medicalCardNumber" placeholder="请输入完整卡号">
            </td>
        </tr>
        <input type="submit" value="提交">
    </table>
</form>
<table>
    <tr>
        <td>
            卡号
        </td>

        <td>
            状态
        </td>
        <td>
            操作
        </td>
    </tr>

<c:forEach var="l" items="${sessionScope.list}">
    <tr>
        <td>
            ${l.medicalCardNumber}
        </td>

        <td>
            <c:if test="${l.buildCardInumber==0}">未激活</c:if>
            <c:if test="${l.buildCardInumber!=0}">已激活</c:if>
        </td>
        <td>
            <a href="Initialize/reset?medicalCardNumber=${l.medicalCardNumber}">重置</a>
        </td>
    </tr>
</c:forEach>

</table>
</body>
</html>
